package com.yanyeori.framework.swagger.configprop;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Swagger属性配置
 *
 * @author chenkuan 2020/12/23
 */
@Getter
@Setter
@ConfigurationProperties(prefix = "swagger")
public class SwaggerConfigProps {
    //是否启用，默认值false
    private boolean enabled = false;
    //标题
    private String title = "rest apis";
    //描述
    private String description = "knife4j rest apis";
    //扫描controller包路径，必填
    private String basePackage;
    //指定路径当前机器ip，动静分离，跨域需要设置
    private String host;
    //服务地址，非必填(建议不填)
    private String termsOfServiceUrl;
    //文档版本
    private String version = "v1.0";
}
